package com.testdemo.web.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.testdemo.web.dao.GroupDao;
import com.testdemo.web.vo.Group;
@Service
public class GroupServiceImpl implements GroupService {

	@Autowired
	private GroupDao groupDao;
	
	@Override
	public int insertGroup(Group group) {
		return groupDao.insertGroup(group);
	}

	@Override
	public int deleteGroup(Integer groupid) {
		return groupDao.deleteGroup(groupid);
	}

	@Override
	public int updateGroup(Group group) {
		return groupDao.updateGroup(group);
	}

	@Override
	public List<Group> selectGroupByLabId(Integer labid) {
		return groupDao.selectGroupByLabId(labid);
	}

	@Override
	public Group selectGroupByUsername(String username) {
		return groupDao.selectGroupByUsername(username);
	}

	@Override
	public Group selectGroupByGroupId(Integer groupid) {
		return groupDao.selectGroupByGroupId(groupid);
	}

}
